package com.ynny.chapter14.service.impl;

import com.ynny.chapter14.bean.User;
import com.ynny.chapter14.mapper.UserMapper;
import com.ynny.chapter14.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {

    @Autowired
   UserMapper userMapper;

    //实现调用UserMapper接口中的查询方法
    @Override
    public List<User> selectUserByNumberAndPasswordAndIdentity(String number, String password, String identity) {
        List<User> userList = userMapper.selectUserByNumberAndPasswordAndIdentity(number, password, identity);


        return userList;
    }

    @Override
    public boolean login(String number, String password, String id) {
        return false;
    }
}
